﻿namespace T4Utilities
{
    public class GenericsHelper
    {
        public static GenericParameterCollection CreateTypeParameters(string baseName, int amount, params string[] additionalTypes)
        {
            var typeParameter = new GenericParameterCollection();
            typeParameter.AddRange(baseName, amount);

            foreach (var type in additionalTypes)
            {
                typeParameter.Add(type);
            }

            return typeParameter;
        }

        public static MethodParameters CreateMethodParameters(string baseName, int amount)
        {
            var methodParameters = new MethodParameters();
            methodParameters.AddRange(baseName, amount);
            return methodParameters;
        }
    }
}
